package inits

import (
	"github.com/spf13/viper"
	"log"
	"user_srv/basic/config"
)

func InitConfig() {
	viper.SetConfigFile("../../dev.yaml")
	viper.ReadInConfig()
	viper.Unmarshal(&config.AppCong)
	log.Println("配置文件获取成功", config.AppCong)
}
